package com.ljs.clickhousedemo.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ljs.clickhousedemo.entity.TOrderItem;
import com.ljs.clickhousedemo.service.ITOrderItemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * t_order_item 前端控制器
 * </p>
 *
 * @author ljs
 * @since 2021-10-26
 */
@RestController
public class TOrderItemController {
    @Resource
    ITOrderItemService itOrderItemService;
      @GetMapping("/order/list")
    public List<TOrderItem> find(){
          Page page=new Page();
          page.setSize(10);
          page.setPages(2);
          return itOrderItemService.page(page).getRecords();
      }

}
